<?php
   require '../config.php';

   $username = $_POST['username'];
   $password = md5($_POST['password']);
   $result = mysql_query("select * from user where name = '".$username."' and password = '".$password."'");
   echo $result; 
?>
